package reflect;

import java.lang.reflect.Constructor;

public class Test {
    public static void main(String[] args) throws Exception{
        Class c = Class.forName("reflect.Student");
        Constructor constructor = c.getConstructor(String.class,int.class,char.class);
        Object obj = constructor.newInstance("李四",22,'女');
        System.out.println(obj);
    }
}
